package com.acsior.hibernate.vo;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.acsior.dac.impl.hibernate.vo.GeneratorKey;
import com.acsior.ddfn.impl.hibernate.vo.NomElementVO;

/**
 * NomServiceExtra entity. @author MyEclipse Persistence Tools <b><i>powered by
 * Belev</i></b>
 */
@Entity
@Table(name = "nom_service_extras", uniqueConstraints = @UniqueConstraint(columnNames = "system_name"))
@GeneratorKey(tableName = "nom_service_extras")
public class NomServiceExtraVO extends NomElementVO {

	private static final long serialVersionUID = -1265010804295350594L;

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "serviceExtra")
	private List<FiscalizationLinkVO> fiscalizations;

	/**  */
	public NomServiceExtraVO() {
		super();
		this.fiscalizations = new ArrayList<FiscalizationLinkVO>();
	}

	
	/**
	 * @return стойността на fiscalizations
	 */
	public List<FiscalizationLinkVO> getFiscalizations() {
		return this.fiscalizations;
	}

	
	/**
	 * @param fiscalizations се залага в fiscalizations
	 */
	public void setFiscalizations(List<FiscalizationLinkVO> fiscalizations) {
		this.fiscalizations = fiscalizations;
	}

}